package vcp.gui.panels;


import java.awt.BorderLayout;


import javax.swing.JLabel;
import javax.swing.JComboBox;

import java.awt.GridLayout;

import javax.swing.border.TitledBorder;

import vcp.gui.components.VCPPanel;

import java.awt.Font;
import java.awt.Color;
/**
 * Save Parking panel
 */
public class PnlSaveParking extends VCPPanel {

	private static final long serialVersionUID = 1L;
	private JComboBox comboLevel;
	private VCPPanel pnlLevel;
	private VCPPanel pnlLotGrid;
	
	public VCPPanel getPnlLevel() {
		return pnlLevel;
	}
	public void setPnlLevel(VCPPanel pnlLevel) {
		this.pnlLevel = pnlLevel;
	}
	public VCPPanel getPnlLotGrid() {
		return pnlLotGrid;
	}
	public void setPnlLotGrid(VCPPanel pnlLotGrid) {
		this.pnlLotGrid = pnlLotGrid;
	}
	/**
	 * Create the panel.
	 */
	public PnlSaveParking() {
		Integer[] levels = {1,2,3};
		
		setBorder(new TitledBorder(null, "Save Parking", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		setLayout(new BorderLayout(0, 0));
		
		pnlLevel = new VCPPanel();
		pnlLevel.setBackground(Color.DARK_GRAY);
		pnlLevel.setForeground(Color.LIGHT_GRAY);
		add(pnlLevel, BorderLayout.NORTH);
		pnlLevel.setLayout(new GridLayout(0, 2, 0, 0));
		
		JLabel lblLevel = new JLabel("Choose Level");
		lblLevel.setForeground(Color.WHITE);
		lblLevel.setFont(new Font("Tahoma", Font.BOLD, 15));
		
		
		
		
		pnlLevel.add(lblLevel);
		
		
		comboLevel = new JComboBox(levels);
		pnlLevel.add(comboLevel);
		
		
		
		pnlLotGrid = new VCPPanel();
		add(pnlLotGrid, BorderLayout.CENTER);

	}
	public JComboBox getComboLevel() {
		return comboLevel;
	}
	public void setComboLevel(JComboBox comboLevel) {
		this.comboLevel = comboLevel;
	}
}
